package com.jerry.base.java8.currying;

/**
 * 柯里化
 *
 * @author Jerry
 * @since 2024/7/31 21:51
 */
public class CurryingTest1 {

    @FunctionalInterface
    interface F {
        int operate(int a, int b);
    }

    public static void main(String[] args) {
        F f = (a, b) -> a + b;
        System.out.println(f.operate(10, 20));
    }
}
